package com.wanxi.student;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

public class TestTree {
    public static void main(String[] args) {
        Map<StudentTree, String> map = new TreeMap<>();
        map.put(new StudentTree("张三1", 22), "成都1");
        map.put(new StudentTree("张三2", 20), "成都2");
        map.put(new StudentTree("张三3", 21), "成都3");
        map.put(new StudentTree("张三4", 27), "成都4");
        System.out.println(map);
    }
}
